Socket
Socket
Sign inDemoInstall

@smithy/eventstream-serde-node

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/eventstream-serde-node

[![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-serde-node/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-serde-node) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-serde-node.svg)](https://www.npmjs.c


Version published
Weekly downloads
7.1M
decreased by-4.05%
Maintainers
2
Weekly downloads
 
Created

What is @smithy/eventstream-serde-node?

@smithy/eventstream-serde-node is a package designed to handle serialization and deserialization of event streams in Node.js. It is part of the AWS SDK for JavaScript and is used to process event streams, which are sequences of events that can be transmitted over a network connection.

What are @smithy/eventstream-serde-node's main functionalities?

Serialization of Event Streams

This feature allows you to serialize an event stream into a format suitable for transmission. The code sample demonstrates how to create an instance of EventStreamMarshaller and use it to serialize an event.

const { EventStreamMarshaller } = require('@smithy/eventstream-serde-node');
const marshaller = new EventStreamMarshaller();
const event = { eventType: 'example', data: 'sample data' };
const serializedEvent = marshaller.marshall(event);
console.log(serializedEvent);

Deserialization of Event Streams

This feature allows you to deserialize an event stream back into its original format. The code sample shows how to use the EventStreamMarshaller to deserialize a serialized event.

const { EventStreamMarshaller } = require('@smithy/eventstream-serde-node');
const marshaller = new EventStreamMarshaller();
const serializedEvent = /* some serialized event data */;
const event = marshaller.unmarshall(serializedEvent);
console.log(event);

Other packages similar to @smithy/eventstream-serde-node

FAQs

Package last updated on 14 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc